package com.test.example.controller.excel.model;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Date;

@Data
@AllArgsConstructor
public class User {
    @Excel(name = "用户id", orderNum = "0")
    private Integer id;

    @Excel(name = "用户名", orderNum = "1")
    private String name;

    @Excel(name = "密码", orderNum = "2")
    private String password;

    @Excel(name = "年龄", orderNum = "3")
    private Integer age;

    @Excel(name = "状态", orderNum = "6", replace = {"正常_1", "禁用_0"})
    private Integer status;

    @Excel(name = "创建时间", orderNum = "4", exportFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
